/**
 * @description  : 应用实例对象
 * @descriptionDetail : 应用实例对象
 * @copyright    : 浙江烟草
 * @author       : mc
 * @create       : 2022-09-04 11:09:19
 */
<script>
import ".env.js";
import initDb from './sql/initDb.js';
import hearExt from './common/hearBeat.js';
export default {
  onLaunch: function() {
    console.log("App Launch");
    console.log(this.$u.config.v);
    let webDb = this.$api.webDB;
    try {
      webDb.openDB(
        (res) => {
          console.log(res);
          initDb.initDb(webDb);
        },
        (err) => {
          console.error(err);
        }
      );
    } catch (er) {
      console.log("==" + er);
    }
    hearExt.initHear();
    uni.reLaunch({url:"/pages/dashboard/splash" + window.location.search,});
  },
  onShow: function() {
    console.log("App Show");
  },
  onHide: function() {
    console.log("App Hide");
  },
  globalData: {
    // 全局变量
    intentParams: "", // 页面跳转大数据量参数 通过全局变量传递
    cacheBaseCode: {
      lst: 0,
    },
  },
  methods: {
    
  },
};
</script>

<style lang="scss">
	@import "@/style/common/csbiIconfont.css";
	@import "uview-ui/index.scss";
	@import "@/style/common/tooltip.scss";
	@import "@/style/common/comm.scss";
	@import "@/style/common/rightMenu.scss";

	/* #ifndef APP-NVUE  */
	view,
	text {
		box-sizing: border-box;
	}

	/* #endif  */
	
	uni-page-body{
		height: 100%;
	}
	.page{
	height: 100%;
	}
	.u-page{
		background-color: #fff;
	}
	/* start--演示页面使用的统一样式--start */
	.u-demo {
		padding: 50rpx 40rpx;
	}

	.u-demo-wrap {
		border-width: 1px;
		border-color: #ddd;
		border-style: dashed;
		background-color: rgb(250, 250, 250);
		padding: 40rpx 20rpx;
		border-radius: 6px;
	}

	.u-demo-area {
		text-align: center;
	}
	
	.d-header {
	}

	.u-no-demo-here {
		color: $u-tips-color;
		font-size: 26rpx;
	}

	.u-demo-result-line {
		border-width: 1px;
		border-color: #ddd;
		border-style: dashed;
		padding: 10rpx 40rpx;
		margin-top: 30rpx;
		border-radius: 5px;
		background-color: rgb(240, 240, 240);
		color: $u-content-color;
		font-size: 32rpx;
		/* #ifndef APP-NVUE */
		word-break: break-word;
		display: inline-block;
		/* #endif */
		text-align: left;
	}

	image {
		will-change: transform !important;
	}

	.u-demo-title,
	.u-config-title {
		text-align: center;
		font-size: 32rpx;
		font-weight: bold;
		margin-bottom: 40rpx;
	}

	.u-config-item {
		margin-top: 50rpx;
	}

	.u-config-title {
		margin-top: 40rpx;
		padding-bottom: 10rpx;
	}

	.u-item-title {
		position: relative;
		font-size: 28rpx;
		padding-left: 8px;
		line-height: 1;
		margin-bottom: 22rpx;
	}

	.u-item-title:after {
		position: absolute;
		width: 4px;
		top: -1px;
		height: 16px;
		/* #ifndef APP-NVUE */
		content: "";
		/* #endif */
		left: 0;
		border-radius: 10px;
		background-color: $u-content-color;
	}

	/* end--演示页面使用的统一样式--end */
	.uni-page-head {
		background-color: #218aff !important;
		color: #fff !important;

		.uni-page-head-btn i {
			color: #fff !important;
		}
	}

	.u-type-warning {
		color: $u-type-warning;
	}

	.under-decoration {
		text-decoration: underline;
	}

	.m-content {
		/* #ifdef H5 */
		height: calc(100vh - 44px - env(safe-area-inset-top));
		margin-top: calc(44 + env(safe-area-inset-top));
		/* #endif */
		/* #ifdef APP-PLUS */
		height: calc(100vh - 44 - var(--status-bar-height));
		margin-top: calc(44 + var(--status-bar-height));
		/* #endif */
	}

	.m-page {
		/* #ifdef H5 */
		height: 100vh;
		/* #endif */
		/* #ifdef APP-PLUS */
		height: 100vh;
		/* #endif */
	}

	.m-flex-row {
		display: inline-flex;
		flex-direction: row;
	}
	.u-switch .node-class.u-switch__node:after {
    content: '否';
    text-align: center;
    color: #808080;
    font-size: 13px;
	}

	.u-switch--on .node-class.u-switch__node:after {
		content: '是';
	}

	uni-modal,
	.uni-modal,
	.uni-mask,
	.uni-actionsheet {
		z-index: 9999 !important;
	}
	// 零售-实地核查-业态细分 页面被遮挡问题 fsx 2023-12-16 开始
	.uni-picker-container .uni-picker-custom{
			z-index: 99999999;
	}
	// 零售-实地核查-业态细分 页面被遮挡问题 fsx 2023-12-16  结束
	.gaode-info-title {
		color: #000;
		font-size: 14px;
		line-height: 26px;
		padding: 0px 0 0 6px;
		font-weight: bold;
		letter-spacing: 1px;
	}

	.gaode-info-content {
		padding: 4px;
		color: #666666;
		line-height: 23px;
	}

	.amap-info-close {
		right: 20px;
		top: 10px;
		font-size: 18px;
	}

	.flex-text-row {
		display: inline-flex;
		flex-direction: row;
	}

	.width100 {
		width: 100%;
	}
	
	*,.uni-input-wrapper,.uni-textarea-wrapper {
		-webkit-user-select:text !important;
		user-select: text !important;
	}
	/deep/.placeholder-font-size{
		font-size: 28rpx;
	}
	
	// 页面底部按钮样式
	.submit-btns {
		display: flex;
		position: fixed;
		padding-top: $cm-conent-padding-column;
		bottom: 0;
		padding-bottom: $cm-conent-padding-column;
		padding-left: $cm-content-paddng-row;
		padding-right: $cm-content-paddng-row;
		width: 100%;
		background-color: white;
		text-align: center;
		z-index: 99;
		.u-btn{
			flex: 1;
			border-radius: 6px !important;
		}
		.u-btn:nth-child(n + 2){
			flex: 1;
			border-radius: 6px !important;
			margin-left: $cm-btns-divider;
		}
	}
	
	.popup-submit-btns {
		display: flex;
		padding-top: $cm-conent-padding-column;
		width: 100%;
		background-color: white;
		text-align: center;
		z-index: 99;
		.u-btn{
			flex: 1;
			border-radius: 6px !important;
		}
		.u-btn:nth-child(n + 2){
			flex: 1;
			border-radius: 6px !important;
			margin-left: $cm-btns-divider;
		}
	}
	
	.btn-other-cls {
		border-top: 1px solid $u-border-color;
		margin-bottom: -1px;
	}
	
	
</style>
